Telegram Group & Telegram Channel
39. Star Pattern 4.


**
**
**
******
********
**********

class StarPattern4
{

public static void main(String arg[])
{

int num = 12;
int f = 2;
int g = num - 1;

for (int i = 1; i <= (num / 2); i++)
{

for (int j = 1; j <= num; j++)
{

if (j >= f && j <= g)
{

System.out.print(" ");

}
else
{

System.out.print("*");

}
}

f = f + 1;
g = g - 1;

System.out.println();
}
}
}

@java_codings



tg-me.com/java_codings/52
Create:
Last Update:

39. Star Pattern 4.


**
**
**
******
********
**********

class StarPattern4
{

public static void main(String arg[])
{

int num = 12;
int f = 2;
int g = num - 1;

for (int i = 1; i <= (num / 2); i++)
{

for (int j = 1; j <= num; j++)
{

if (j >= f && j <= g)
{

System.out.print(" ");

}
else
{

System.out.print("*");

}
}

f = f + 1;
g = g - 1;

System.out.println();
}
}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_codings/52

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

To pay the bills, Mr. Durov is issuing investors $1 billion to $1.5 billion of company debt, with the promise of discounted equity if the company eventually goes public, the people briefed on the plans said. He has also announced plans to start selling ads in public Telegram channels as soon as later this year, as well as offering other premium services for businesses and users.

Importantly, that investor viewpoint is not new. It cycles in when conditions are right (and vice versa). It also brings the ineffective warnings of an overpriced market with it.Looking toward a good 2022 stock market, there is no apparent reason to expect these issues to change.

Advance Java ‍ from fr


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM USA